<template>
  <div>
    <el-button
      type="warning"
      circle
      icon="el-icon-setting"
      @click="assignPermissions"
    ></el-button>
    <!-- #region Dialog -->
    <el-dialog title="分配权限" :visible.sync="isVisible" width="30%">
      <span slot="footer" class="dialog-footer">
        <el-button @click="isVisible = false">取 消</el-button>
        <el-button type="primary" @click="onSubmit('FromRef')">确 定</el-button>
      </span>
    </el-dialog>
    <!-- #endregion -->
  </div>
</template>

<script>
export default {
  props: {
    role: Object,
  },
  data() {
    return {
      isVisible: false,
    };
  },
  created() {
    console.log(this.role);
  },
  methods: {
    assignPermissions() {
      this.isVisible = true;
    },
  },
};
</script>

<style></style>
